package com.egdk.api.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PatientEntityExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PatientEntityExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPatientidIsNull() {
            addCriterion("patientid is null");
            return (Criteria) this;
        }

        public Criteria andPatientidIsNotNull() {
            addCriterion("patientid is not null");
            return (Criteria) this;
        }

        public Criteria andPatientidEqualTo(Integer value) {
            addCriterion("patientid =", value, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidNotEqualTo(Integer value) {
            addCriterion("patientid <>", value, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidGreaterThan(Integer value) {
            addCriterion("patientid >", value, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidGreaterThanOrEqualTo(Integer value) {
            addCriterion("patientid >=", value, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidLessThan(Integer value) {
            addCriterion("patientid <", value, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidLessThanOrEqualTo(Integer value) {
            addCriterion("patientid <=", value, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidIn(List<Integer> values) {
            addCriterion("patientid in", values, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidNotIn(List<Integer> values) {
            addCriterion("patientid not in", values, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidBetween(Integer value1, Integer value2) {
            addCriterion("patientid between", value1, value2, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidNotBetween(Integer value1, Integer value2) {
            addCriterion("patientid not between", value1, value2, "patientid");
            return (Criteria) this;
        }

        public Criteria andPtNameIsNull() {
            addCriterion("pt_name is null");
            return (Criteria) this;
        }

        public Criteria andPtNameIsNotNull() {
            addCriterion("pt_name is not null");
            return (Criteria) this;
        }

        public Criteria andPtNameEqualTo(String value) {
            addCriterion("pt_name =", value, "ptName");
            return (Criteria) this;
        }

        public Criteria andPtNameNotEqualTo(String value) {
            addCriterion("pt_name <>", value, "ptName");
            return (Criteria) this;
        }

        public Criteria andPtNameGreaterThan(String value) {
            addCriterion("pt_name >", value, "ptName");
            return (Criteria) this;
        }

        public Criteria andPtNameGreaterThanOrEqualTo(String value) {
            addCriterion("pt_name >=", value, "ptName");
            return (Criteria) this;
        }

        public Criteria andPtNameLessThan(String value) {
            addCriterion("pt_name <", value, "ptName");
            return (Criteria) this;
        }

        public Criteria andPtNameLessThanOrEqualTo(String value) {
            addCriterion("pt_name <=", value, "ptName");
            return (Criteria) this;
        }

        public Criteria andPtNameLike(String value) {
            addCriterion("pt_name like", value, "ptName");
            return (Criteria) this;
        }

        public Criteria andPtNameNotLike(String value) {
            addCriterion("pt_name not like", value, "ptName");
            return (Criteria) this;
        }

        public Criteria andPtNameIn(List<String> values) {
            addCriterion("pt_name in", values, "ptName");
            return (Criteria) this;
        }

        public Criteria andPtNameNotIn(List<String> values) {
            addCriterion("pt_name not in", values, "ptName");
            return (Criteria) this;
        }

        public Criteria andPtNameBetween(String value1, String value2) {
            addCriterion("pt_name between", value1, value2, "ptName");
            return (Criteria) this;
        }

        public Criteria andPtNameNotBetween(String value1, String value2) {
            addCriterion("pt_name not between", value1, value2, "ptName");
            return (Criteria) this;
        }

        public Criteria andPtSexIsNull() {
            addCriterion("pt_sex is null");
            return (Criteria) this;
        }

        public Criteria andPtSexIsNotNull() {
            addCriterion("pt_sex is not null");
            return (Criteria) this;
        }

        public Criteria andPtSexEqualTo(String value) {
            addCriterion("pt_sex =", value, "ptSex");
            return (Criteria) this;
        }

        public Criteria andPtSexNotEqualTo(String value) {
            addCriterion("pt_sex <>", value, "ptSex");
            return (Criteria) this;
        }

        public Criteria andPtSexGreaterThan(String value) {
            addCriterion("pt_sex >", value, "ptSex");
            return (Criteria) this;
        }

        public Criteria andPtSexGreaterThanOrEqualTo(String value) {
            addCriterion("pt_sex >=", value, "ptSex");
            return (Criteria) this;
        }

        public Criteria andPtSexLessThan(String value) {
            addCriterion("pt_sex <", value, "ptSex");
            return (Criteria) this;
        }

        public Criteria andPtSexLessThanOrEqualTo(String value) {
            addCriterion("pt_sex <=", value, "ptSex");
            return (Criteria) this;
        }

        public Criteria andPtSexLike(String value) {
            addCriterion("pt_sex like", value, "ptSex");
            return (Criteria) this;
        }

        public Criteria andPtSexNotLike(String value) {
            addCriterion("pt_sex not like", value, "ptSex");
            return (Criteria) this;
        }

        public Criteria andPtSexIn(List<String> values) {
            addCriterion("pt_sex in", values, "ptSex");
            return (Criteria) this;
        }

        public Criteria andPtSexNotIn(List<String> values) {
            addCriterion("pt_sex not in", values, "ptSex");
            return (Criteria) this;
        }

        public Criteria andPtSexBetween(String value1, String value2) {
            addCriterion("pt_sex between", value1, value2, "ptSex");
            return (Criteria) this;
        }

        public Criteria andPtSexNotBetween(String value1, String value2) {
            addCriterion("pt_sex not between", value1, value2, "ptSex");
            return (Criteria) this;
        }

        public Criteria andPtBirthdayIsNull() {
            addCriterion("pt_birthday is null");
            return (Criteria) this;
        }

        public Criteria andPtBirthdayIsNotNull() {
            addCriterion("pt_birthday is not null");
            return (Criteria) this;
        }

        public Criteria andPtBirthdayEqualTo(Date value) {
            addCriterion("pt_birthday =", value, "ptBirthday");
            return (Criteria) this;
        }

        public Criteria andPtBirthdayNotEqualTo(Date value) {
            addCriterion("pt_birthday <>", value, "ptBirthday");
            return (Criteria) this;
        }

        public Criteria andPtBirthdayGreaterThan(Date value) {
            addCriterion("pt_birthday >", value, "ptBirthday");
            return (Criteria) this;
        }

        public Criteria andPtBirthdayGreaterThanOrEqualTo(Date value) {
            addCriterion("pt_birthday >=", value, "ptBirthday");
            return (Criteria) this;
        }

        public Criteria andPtBirthdayLessThan(Date value) {
            addCriterion("pt_birthday <", value, "ptBirthday");
            return (Criteria) this;
        }

        public Criteria andPtBirthdayLessThanOrEqualTo(Date value) {
            addCriterion("pt_birthday <=", value, "ptBirthday");
            return (Criteria) this;
        }

        public Criteria andPtBirthdayIn(List<Date> values) {
            addCriterion("pt_birthday in", values, "ptBirthday");
            return (Criteria) this;
        }

        public Criteria andPtBirthdayNotIn(List<Date> values) {
            addCriterion("pt_birthday not in", values, "ptBirthday");
            return (Criteria) this;
        }

        public Criteria andPtBirthdayBetween(Date value1, Date value2) {
            addCriterion("pt_birthday between", value1, value2, "ptBirthday");
            return (Criteria) this;
        }

        public Criteria andPtBirthdayNotBetween(Date value1, Date value2) {
            addCriterion("pt_birthday not between", value1, value2, "ptBirthday");
            return (Criteria) this;
        }

        public Criteria andPtAddIsNull() {
            addCriterion("pt_add is null");
            return (Criteria) this;
        }

        public Criteria andPtAddIsNotNull() {
            addCriterion("pt_add is not null");
            return (Criteria) this;
        }

        public Criteria andPtAddEqualTo(String value) {
            addCriterion("pt_add =", value, "ptAdd");
            return (Criteria) this;
        }

        public Criteria andPtAddNotEqualTo(String value) {
            addCriterion("pt_add <>", value, "ptAdd");
            return (Criteria) this;
        }

        public Criteria andPtAddGreaterThan(String value) {
            addCriterion("pt_add >", value, "ptAdd");
            return (Criteria) this;
        }

        public Criteria andPtAddGreaterThanOrEqualTo(String value) {
            addCriterion("pt_add >=", value, "ptAdd");
            return (Criteria) this;
        }

        public Criteria andPtAddLessThan(String value) {
            addCriterion("pt_add <", value, "ptAdd");
            return (Criteria) this;
        }

        public Criteria andPtAddLessThanOrEqualTo(String value) {
            addCriterion("pt_add <=", value, "ptAdd");
            return (Criteria) this;
        }

        public Criteria andPtAddLike(String value) {
            addCriterion("pt_add like", value, "ptAdd");
            return (Criteria) this;
        }

        public Criteria andPtAddNotLike(String value) {
            addCriterion("pt_add not like", value, "ptAdd");
            return (Criteria) this;
        }

        public Criteria andPtAddIn(List<String> values) {
            addCriterion("pt_add in", values, "ptAdd");
            return (Criteria) this;
        }

        public Criteria andPtAddNotIn(List<String> values) {
            addCriterion("pt_add not in", values, "ptAdd");
            return (Criteria) this;
        }

        public Criteria andPtAddBetween(String value1, String value2) {
            addCriterion("pt_add between", value1, value2, "ptAdd");
            return (Criteria) this;
        }

        public Criteria andPtAddNotBetween(String value1, String value2) {
            addCriterion("pt_add not between", value1, value2, "ptAdd");
            return (Criteria) this;
        }

        public Criteria andPtTeleIsNull() {
            addCriterion("pt_tele is null");
            return (Criteria) this;
        }

        public Criteria andPtTeleIsNotNull() {
            addCriterion("pt_tele is not null");
            return (Criteria) this;
        }

        public Criteria andPtTeleEqualTo(String value) {
            addCriterion("pt_tele =", value, "ptTele");
            return (Criteria) this;
        }

        public Criteria andPtTeleNotEqualTo(String value) {
            addCriterion("pt_tele <>", value, "ptTele");
            return (Criteria) this;
        }

        public Criteria andPtTeleGreaterThan(String value) {
            addCriterion("pt_tele >", value, "ptTele");
            return (Criteria) this;
        }

        public Criteria andPtTeleGreaterThanOrEqualTo(String value) {
            addCriterion("pt_tele >=", value, "ptTele");
            return (Criteria) this;
        }

        public Criteria andPtTeleLessThan(String value) {
            addCriterion("pt_tele <", value, "ptTele");
            return (Criteria) this;
        }

        public Criteria andPtTeleLessThanOrEqualTo(String value) {
            addCriterion("pt_tele <=", value, "ptTele");
            return (Criteria) this;
        }

        public Criteria andPtTeleLike(String value) {
            addCriterion("pt_tele like", value, "ptTele");
            return (Criteria) this;
        }

        public Criteria andPtTeleNotLike(String value) {
            addCriterion("pt_tele not like", value, "ptTele");
            return (Criteria) this;
        }

        public Criteria andPtTeleIn(List<String> values) {
            addCriterion("pt_tele in", values, "ptTele");
            return (Criteria) this;
        }

        public Criteria andPtTeleNotIn(List<String> values) {
            addCriterion("pt_tele not in", values, "ptTele");
            return (Criteria) this;
        }

        public Criteria andPtTeleBetween(String value1, String value2) {
            addCriterion("pt_tele between", value1, value2, "ptTele");
            return (Criteria) this;
        }

        public Criteria andPtTeleNotBetween(String value1, String value2) {
            addCriterion("pt_tele not between", value1, value2, "ptTele");
            return (Criteria) this;
        }

        public Criteria andPtPatientcodeIsNull() {
            addCriterion("pt_patientCode is null");
            return (Criteria) this;
        }

        public Criteria andPtPatientcodeIsNotNull() {
            addCriterion("pt_patientCode is not null");
            return (Criteria) this;
        }

        public Criteria andPtPatientcodeEqualTo(String value) {
            addCriterion("pt_patientCode =", value, "ptPatientcode");
            return (Criteria) this;
        }

        public Criteria andPtPatientcodeNotEqualTo(String value) {
            addCriterion("pt_patientCode <>", value, "ptPatientcode");
            return (Criteria) this;
        }

        public Criteria andPtPatientcodeGreaterThan(String value) {
            addCriterion("pt_patientCode >", value, "ptPatientcode");
            return (Criteria) this;
        }

        public Criteria andPtPatientcodeGreaterThanOrEqualTo(String value) {
            addCriterion("pt_patientCode >=", value, "ptPatientcode");
            return (Criteria) this;
        }

        public Criteria andPtPatientcodeLessThan(String value) {
            addCriterion("pt_patientCode <", value, "ptPatientcode");
            return (Criteria) this;
        }

        public Criteria andPtPatientcodeLessThanOrEqualTo(String value) {
            addCriterion("pt_patientCode <=", value, "ptPatientcode");
            return (Criteria) this;
        }

        public Criteria andPtPatientcodeLike(String value) {
            addCriterion("pt_patientCode like", value, "ptPatientcode");
            return (Criteria) this;
        }

        public Criteria andPtPatientcodeNotLike(String value) {
            addCriterion("pt_patientCode not like", value, "ptPatientcode");
            return (Criteria) this;
        }

        public Criteria andPtPatientcodeIn(List<String> values) {
            addCriterion("pt_patientCode in", values, "ptPatientcode");
            return (Criteria) this;
        }

        public Criteria andPtPatientcodeNotIn(List<String> values) {
            addCriterion("pt_patientCode not in", values, "ptPatientcode");
            return (Criteria) this;
        }

        public Criteria andPtPatientcodeBetween(String value1, String value2) {
            addCriterion("pt_patientCode between", value1, value2, "ptPatientcode");
            return (Criteria) this;
        }

        public Criteria andPtPatientcodeNotBetween(String value1, String value2) {
            addCriterion("pt_patientCode not between", value1, value2, "ptPatientcode");
            return (Criteria) this;
        }

        public Criteria andPtSfhideIsNull() {
            addCriterion("pt_sfHide is null");
            return (Criteria) this;
        }

        public Criteria andPtSfhideIsNotNull() {
            addCriterion("pt_sfHide is not null");
            return (Criteria) this;
        }

        public Criteria andPtSfhideEqualTo(Boolean value) {
            addCriterion("pt_sfHide =", value, "ptSfhide");
            return (Criteria) this;
        }

        public Criteria andPtSfhideNotEqualTo(Boolean value) {
            addCriterion("pt_sfHide <>", value, "ptSfhide");
            return (Criteria) this;
        }

        public Criteria andPtSfhideGreaterThan(Boolean value) {
            addCriterion("pt_sfHide >", value, "ptSfhide");
            return (Criteria) this;
        }

        public Criteria andPtSfhideGreaterThanOrEqualTo(Boolean value) {
            addCriterion("pt_sfHide >=", value, "ptSfhide");
            return (Criteria) this;
        }

        public Criteria andPtSfhideLessThan(Boolean value) {
            addCriterion("pt_sfHide <", value, "ptSfhide");
            return (Criteria) this;
        }

        public Criteria andPtSfhideLessThanOrEqualTo(Boolean value) {
            addCriterion("pt_sfHide <=", value, "ptSfhide");
            return (Criteria) this;
        }

        public Criteria andPtSfhideIn(List<Boolean> values) {
            addCriterion("pt_sfHide in", values, "ptSfhide");
            return (Criteria) this;
        }

        public Criteria andPtSfhideNotIn(List<Boolean> values) {
            addCriterion("pt_sfHide not in", values, "ptSfhide");
            return (Criteria) this;
        }

        public Criteria andPtSfhideBetween(Boolean value1, Boolean value2) {
            addCriterion("pt_sfHide between", value1, value2, "ptSfhide");
            return (Criteria) this;
        }

        public Criteria andPtSfhideNotBetween(Boolean value1, Boolean value2) {
            addCriterion("pt_sfHide not between", value1, value2, "ptSfhide");
            return (Criteria) this;
        }

        public Criteria andPtRecentcheckcodeIsNull() {
            addCriterion("pt_recentCheckCode is null");
            return (Criteria) this;
        }

        public Criteria andPtRecentcheckcodeIsNotNull() {
            addCriterion("pt_recentCheckCode is not null");
            return (Criteria) this;
        }

        public Criteria andPtRecentcheckcodeEqualTo(String value) {
            addCriterion("pt_recentCheckCode =", value, "ptRecentcheckcode");
            return (Criteria) this;
        }

        public Criteria andPtRecentcheckcodeNotEqualTo(String value) {
            addCriterion("pt_recentCheckCode <>", value, "ptRecentcheckcode");
            return (Criteria) this;
        }

        public Criteria andPtRecentcheckcodeGreaterThan(String value) {
            addCriterion("pt_recentCheckCode >", value, "ptRecentcheckcode");
            return (Criteria) this;
        }

        public Criteria andPtRecentcheckcodeGreaterThanOrEqualTo(String value) {
            addCriterion("pt_recentCheckCode >=", value, "ptRecentcheckcode");
            return (Criteria) this;
        }

        public Criteria andPtRecentcheckcodeLessThan(String value) {
            addCriterion("pt_recentCheckCode <", value, "ptRecentcheckcode");
            return (Criteria) this;
        }

        public Criteria andPtRecentcheckcodeLessThanOrEqualTo(String value) {
            addCriterion("pt_recentCheckCode <=", value, "ptRecentcheckcode");
            return (Criteria) this;
        }

        public Criteria andPtRecentcheckcodeLike(String value) {
            addCriterion("pt_recentCheckCode like", value, "ptRecentcheckcode");
            return (Criteria) this;
        }

        public Criteria andPtRecentcheckcodeNotLike(String value) {
            addCriterion("pt_recentCheckCode not like", value, "ptRecentcheckcode");
            return (Criteria) this;
        }

        public Criteria andPtRecentcheckcodeIn(List<String> values) {
            addCriterion("pt_recentCheckCode in", values, "ptRecentcheckcode");
            return (Criteria) this;
        }

        public Criteria andPtRecentcheckcodeNotIn(List<String> values) {
            addCriterion("pt_recentCheckCode not in", values, "ptRecentcheckcode");
            return (Criteria) this;
        }

        public Criteria andPtRecentcheckcodeBetween(String value1, String value2) {
            addCriterion("pt_recentCheckCode between", value1, value2, "ptRecentcheckcode");
            return (Criteria) this;
        }

        public Criteria andPtRecentcheckcodeNotBetween(String value1, String value2) {
            addCriterion("pt_recentCheckCode not between", value1, value2, "ptRecentcheckcode");
            return (Criteria) this;
        }

        public Criteria andPtRecentdjdateIsNull() {
            addCriterion("pt_recentDjDate is null");
            return (Criteria) this;
        }

        public Criteria andPtRecentdjdateIsNotNull() {
            addCriterion("pt_recentDjDate is not null");
            return (Criteria) this;
        }

        public Criteria andPtRecentdjdateEqualTo(Date value) {
            addCriterion("pt_recentDjDate =", value, "ptRecentdjdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentdjdateNotEqualTo(Date value) {
            addCriterion("pt_recentDjDate <>", value, "ptRecentdjdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentdjdateGreaterThan(Date value) {
            addCriterion("pt_recentDjDate >", value, "ptRecentdjdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentdjdateGreaterThanOrEqualTo(Date value) {
            addCriterion("pt_recentDjDate >=", value, "ptRecentdjdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentdjdateLessThan(Date value) {
            addCriterion("pt_recentDjDate <", value, "ptRecentdjdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentdjdateLessThanOrEqualTo(Date value) {
            addCriterion("pt_recentDjDate <=", value, "ptRecentdjdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentdjdateIn(List<Date> values) {
            addCriterion("pt_recentDjDate in", values, "ptRecentdjdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentdjdateNotIn(List<Date> values) {
            addCriterion("pt_recentDjDate not in", values, "ptRecentdjdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentdjdateBetween(Date value1, Date value2) {
            addCriterion("pt_recentDjDate between", value1, value2, "ptRecentdjdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentdjdateNotBetween(Date value1, Date value2) {
            addCriterion("pt_recentDjDate not between", value1, value2, "ptRecentdjdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdateIsNull() {
            addCriterion("pt_recentBgDate is null");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdateIsNotNull() {
            addCriterion("pt_recentBgDate is not null");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdateEqualTo(Date value) {
            addCriterion("pt_recentBgDate =", value, "ptRecentbgdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdateNotEqualTo(Date value) {
            addCriterion("pt_recentBgDate <>", value, "ptRecentbgdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdateGreaterThan(Date value) {
            addCriterion("pt_recentBgDate >", value, "ptRecentbgdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdateGreaterThanOrEqualTo(Date value) {
            addCriterion("pt_recentBgDate >=", value, "ptRecentbgdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdateLessThan(Date value) {
            addCriterion("pt_recentBgDate <", value, "ptRecentbgdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdateLessThanOrEqualTo(Date value) {
            addCriterion("pt_recentBgDate <=", value, "ptRecentbgdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdateIn(List<Date> values) {
            addCriterion("pt_recentBgDate in", values, "ptRecentbgdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdateNotIn(List<Date> values) {
            addCriterion("pt_recentBgDate not in", values, "ptRecentbgdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdateBetween(Date value1, Date value2) {
            addCriterion("pt_recentBgDate between", value1, value2, "ptRecentbgdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdateNotBetween(Date value1, Date value2) {
            addCriterion("pt_recentBgDate not between", value1, value2, "ptRecentbgdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcdateIsNull() {
            addCriterion("pt_recentJcDate is null");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcdateIsNotNull() {
            addCriterion("pt_recentJcDate is not null");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcdateEqualTo(Date value) {
            addCriterion("pt_recentJcDate =", value, "ptRecentjcdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcdateNotEqualTo(Date value) {
            addCriterion("pt_recentJcDate <>", value, "ptRecentjcdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcdateGreaterThan(Date value) {
            addCriterion("pt_recentJcDate >", value, "ptRecentjcdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcdateGreaterThanOrEqualTo(Date value) {
            addCriterion("pt_recentJcDate >=", value, "ptRecentjcdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcdateLessThan(Date value) {
            addCriterion("pt_recentJcDate <", value, "ptRecentjcdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcdateLessThanOrEqualTo(Date value) {
            addCriterion("pt_recentJcDate <=", value, "ptRecentjcdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcdateIn(List<Date> values) {
            addCriterion("pt_recentJcDate in", values, "ptRecentjcdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcdateNotIn(List<Date> values) {
            addCriterion("pt_recentJcDate not in", values, "ptRecentjcdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcdateBetween(Date value1, Date value2) {
            addCriterion("pt_recentJcDate between", value1, value2, "ptRecentjcdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcdateNotBetween(Date value1, Date value2) {
            addCriterion("pt_recentJcDate not between", value1, value2, "ptRecentjcdate");
            return (Criteria) this;
        }

        public Criteria andPtRecentageIsNull() {
            addCriterion("pt_recentAge is null");
            return (Criteria) this;
        }

        public Criteria andPtRecentageIsNotNull() {
            addCriterion("pt_recentAge is not null");
            return (Criteria) this;
        }

        public Criteria andPtRecentageEqualTo(String value) {
            addCriterion("pt_recentAge =", value, "ptRecentage");
            return (Criteria) this;
        }

        public Criteria andPtRecentageNotEqualTo(String value) {
            addCriterion("pt_recentAge <>", value, "ptRecentage");
            return (Criteria) this;
        }

        public Criteria andPtRecentageGreaterThan(String value) {
            addCriterion("pt_recentAge >", value, "ptRecentage");
            return (Criteria) this;
        }

        public Criteria andPtRecentageGreaterThanOrEqualTo(String value) {
            addCriterion("pt_recentAge >=", value, "ptRecentage");
            return (Criteria) this;
        }

        public Criteria andPtRecentageLessThan(String value) {
            addCriterion("pt_recentAge <", value, "ptRecentage");
            return (Criteria) this;
        }

        public Criteria andPtRecentageLessThanOrEqualTo(String value) {
            addCriterion("pt_recentAge <=", value, "ptRecentage");
            return (Criteria) this;
        }

        public Criteria andPtRecentageLike(String value) {
            addCriterion("pt_recentAge like", value, "ptRecentage");
            return (Criteria) this;
        }

        public Criteria andPtRecentageNotLike(String value) {
            addCriterion("pt_recentAge not like", value, "ptRecentage");
            return (Criteria) this;
        }

        public Criteria andPtRecentageIn(List<String> values) {
            addCriterion("pt_recentAge in", values, "ptRecentage");
            return (Criteria) this;
        }

        public Criteria andPtRecentageNotIn(List<String> values) {
            addCriterion("pt_recentAge not in", values, "ptRecentage");
            return (Criteria) this;
        }

        public Criteria andPtRecentageBetween(String value1, String value2) {
            addCriterion("pt_recentAge between", value1, value2, "ptRecentage");
            return (Criteria) this;
        }

        public Criteria andPtRecentageNotBetween(String value1, String value2) {
            addCriterion("pt_recentAge not between", value1, value2, "ptRecentage");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdoctorIsNull() {
            addCriterion("pt_recentBgDoctor is null");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdoctorIsNotNull() {
            addCriterion("pt_recentBgDoctor is not null");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdoctorEqualTo(String value) {
            addCriterion("pt_recentBgDoctor =", value, "ptRecentbgdoctor");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdoctorNotEqualTo(String value) {
            addCriterion("pt_recentBgDoctor <>", value, "ptRecentbgdoctor");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdoctorGreaterThan(String value) {
            addCriterion("pt_recentBgDoctor >", value, "ptRecentbgdoctor");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdoctorGreaterThanOrEqualTo(String value) {
            addCriterion("pt_recentBgDoctor >=", value, "ptRecentbgdoctor");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdoctorLessThan(String value) {
            addCriterion("pt_recentBgDoctor <", value, "ptRecentbgdoctor");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdoctorLessThanOrEqualTo(String value) {
            addCriterion("pt_recentBgDoctor <=", value, "ptRecentbgdoctor");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdoctorLike(String value) {
            addCriterion("pt_recentBgDoctor like", value, "ptRecentbgdoctor");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdoctorNotLike(String value) {
            addCriterion("pt_recentBgDoctor not like", value, "ptRecentbgdoctor");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdoctorIn(List<String> values) {
            addCriterion("pt_recentBgDoctor in", values, "ptRecentbgdoctor");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdoctorNotIn(List<String> values) {
            addCriterion("pt_recentBgDoctor not in", values, "ptRecentbgdoctor");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdoctorBetween(String value1, String value2) {
            addCriterion("pt_recentBgDoctor between", value1, value2, "ptRecentbgdoctor");
            return (Criteria) this;
        }

        public Criteria andPtRecentbgdoctorNotBetween(String value1, String value2) {
            addCriterion("pt_recentBgDoctor not between", value1, value2, "ptRecentbgdoctor");
            return (Criteria) this;
        }

        public Criteria andPtRecentshdoctorIsNull() {
            addCriterion("pt_recentShDoctor is null");
            return (Criteria) this;
        }

        public Criteria andPtRecentshdoctorIsNotNull() {
            addCriterion("pt_recentShDoctor is not null");
            return (Criteria) this;
        }

        public Criteria andPtRecentshdoctorEqualTo(String value) {
            addCriterion("pt_recentShDoctor =", value, "ptRecentshdoctor");
            return (Criteria) this;
        }

        public Criteria andPtRecentshdoctorNotEqualTo(String value) {
            addCriterion("pt_recentShDoctor <>", value, "ptRecentshdoctor");
            return (Criteria) this;
        }

        public Criteria andPtRecentshdoctorGreaterThan(String value) {
            addCriterion("pt_recentShDoctor >", value, "ptRecentshdoctor");
            return (Criteria) this;
        }

        public Criteria andPtRecentshdoctorGreaterThanOrEqualTo(String value) {
            addCriterion("pt_recentShDoctor >=", value, "ptRecentshdoctor");
            return (Criteria) this;
        }

        public Criteria andPtRecentshdoctorLessThan(String value) {
            addCriterion("pt_recentShDoctor <", value, "ptRecentshdoctor");
            return (Criteria) this;
        }

        public Criteria andPtRecentshdoctorLessThanOrEqualTo(String value) {
            addCriterion("pt_recentShDoctor <=", value, "ptRecentshdoctor");
            return (Criteria) this;
        }

        public Criteria andPtRecentshdoctorLike(String value) {
            addCriterion("pt_recentShDoctor like", value, "ptRecentshdoctor");
            return (Criteria) this;
        }

        public Criteria andPtRecentshdoctorNotLike(String value) {
            addCriterion("pt_recentShDoctor not like", value, "ptRecentshdoctor");
            return (Criteria) this;
        }

        public Criteria andPtRecentshdoctorIn(List<String> values) {
            addCriterion("pt_recentShDoctor in", values, "ptRecentshdoctor");
            return (Criteria) this;
        }

        public Criteria andPtRecentshdoctorNotIn(List<String> values) {
            addCriterion("pt_recentShDoctor not in", values, "ptRecentshdoctor");
            return (Criteria) this;
        }

        public Criteria andPtRecentshdoctorBetween(String value1, String value2) {
            addCriterion("pt_recentShDoctor between", value1, value2, "ptRecentshdoctor");
            return (Criteria) this;
        }

        public Criteria andPtRecentshdoctorNotBetween(String value1, String value2) {
            addCriterion("pt_recentShDoctor not between", value1, value2, "ptRecentshdoctor");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcxmIsNull() {
            addCriterion("pt_recentJcxm is null");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcxmIsNotNull() {
            addCriterion("pt_recentJcxm is not null");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcxmEqualTo(String value) {
            addCriterion("pt_recentJcxm =", value, "ptRecentjcxm");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcxmNotEqualTo(String value) {
            addCriterion("pt_recentJcxm <>", value, "ptRecentjcxm");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcxmGreaterThan(String value) {
            addCriterion("pt_recentJcxm >", value, "ptRecentjcxm");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcxmGreaterThanOrEqualTo(String value) {
            addCriterion("pt_recentJcxm >=", value, "ptRecentjcxm");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcxmLessThan(String value) {
            addCriterion("pt_recentJcxm <", value, "ptRecentjcxm");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcxmLessThanOrEqualTo(String value) {
            addCriterion("pt_recentJcxm <=", value, "ptRecentjcxm");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcxmLike(String value) {
            addCriterion("pt_recentJcxm like", value, "ptRecentjcxm");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcxmNotLike(String value) {
            addCriterion("pt_recentJcxm not like", value, "ptRecentjcxm");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcxmIn(List<String> values) {
            addCriterion("pt_recentJcxm in", values, "ptRecentjcxm");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcxmNotIn(List<String> values) {
            addCriterion("pt_recentJcxm not in", values, "ptRecentjcxm");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcxmBetween(String value1, String value2) {
            addCriterion("pt_recentJcxm between", value1, value2, "ptRecentjcxm");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcxmNotBetween(String value1, String value2) {
            addCriterion("pt_recentJcxm not between", value1, value2, "ptRecentjcxm");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcsbIsNull() {
            addCriterion("pt_RecentJcsb is null");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcsbIsNotNull() {
            addCriterion("pt_RecentJcsb is not null");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcsbEqualTo(String value) {
            addCriterion("pt_RecentJcsb =", value, "ptRecentjcsb");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcsbNotEqualTo(String value) {
            addCriterion("pt_RecentJcsb <>", value, "ptRecentjcsb");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcsbGreaterThan(String value) {
            addCriterion("pt_RecentJcsb >", value, "ptRecentjcsb");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcsbGreaterThanOrEqualTo(String value) {
            addCriterion("pt_RecentJcsb >=", value, "ptRecentjcsb");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcsbLessThan(String value) {
            addCriterion("pt_RecentJcsb <", value, "ptRecentjcsb");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcsbLessThanOrEqualTo(String value) {
            addCriterion("pt_RecentJcsb <=", value, "ptRecentjcsb");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcsbLike(String value) {
            addCriterion("pt_RecentJcsb like", value, "ptRecentjcsb");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcsbNotLike(String value) {
            addCriterion("pt_RecentJcsb not like", value, "ptRecentjcsb");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcsbIn(List<String> values) {
            addCriterion("pt_RecentJcsb in", values, "ptRecentjcsb");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcsbNotIn(List<String> values) {
            addCriterion("pt_RecentJcsb not in", values, "ptRecentjcsb");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcsbBetween(String value1, String value2) {
            addCriterion("pt_RecentJcsb between", value1, value2, "ptRecentjcsb");
            return (Criteria) this;
        }

        public Criteria andPtRecentjcsbNotBetween(String value1, String value2) {
            addCriterion("pt_RecentJcsb not between", value1, value2, "ptRecentjcsb");
            return (Criteria) this;
        }

        public Criteria andExamorderiiIsNull() {
            addCriterion("ExamOrderII is null");
            return (Criteria) this;
        }

        public Criteria andExamorderiiIsNotNull() {
            addCriterion("ExamOrderII is not null");
            return (Criteria) this;
        }

        public Criteria andExamorderiiEqualTo(String value) {
            addCriterion("ExamOrderII =", value, "examorderii");
            return (Criteria) this;
        }

        public Criteria andExamorderiiNotEqualTo(String value) {
            addCriterion("ExamOrderII <>", value, "examorderii");
            return (Criteria) this;
        }

        public Criteria andExamorderiiGreaterThan(String value) {
            addCriterion("ExamOrderII >", value, "examorderii");
            return (Criteria) this;
        }

        public Criteria andExamorderiiGreaterThanOrEqualTo(String value) {
            addCriterion("ExamOrderII >=", value, "examorderii");
            return (Criteria) this;
        }

        public Criteria andExamorderiiLessThan(String value) {
            addCriterion("ExamOrderII <", value, "examorderii");
            return (Criteria) this;
        }

        public Criteria andExamorderiiLessThanOrEqualTo(String value) {
            addCriterion("ExamOrderII <=", value, "examorderii");
            return (Criteria) this;
        }

        public Criteria andExamorderiiLike(String value) {
            addCriterion("ExamOrderII like", value, "examorderii");
            return (Criteria) this;
        }

        public Criteria andExamorderiiNotLike(String value) {
            addCriterion("ExamOrderII not like", value, "examorderii");
            return (Criteria) this;
        }

        public Criteria andExamorderiiIn(List<String> values) {
            addCriterion("ExamOrderII in", values, "examorderii");
            return (Criteria) this;
        }

        public Criteria andExamorderiiNotIn(List<String> values) {
            addCriterion("ExamOrderII not in", values, "examorderii");
            return (Criteria) this;
        }

        public Criteria andExamorderiiBetween(String value1, String value2) {
            addCriterion("ExamOrderII between", value1, value2, "examorderii");
            return (Criteria) this;
        }

        public Criteria andExamorderiiNotBetween(String value1, String value2) {
            addCriterion("ExamOrderII not between", value1, value2, "examorderii");
            return (Criteria) this;
        }

        public Criteria andEncounteriiIsNull() {
            addCriterion("EncounterII is null");
            return (Criteria) this;
        }

        public Criteria andEncounteriiIsNotNull() {
            addCriterion("EncounterII is not null");
            return (Criteria) this;
        }

        public Criteria andEncounteriiEqualTo(String value) {
            addCriterion("EncounterII =", value, "encounterii");
            return (Criteria) this;
        }

        public Criteria andEncounteriiNotEqualTo(String value) {
            addCriterion("EncounterII <>", value, "encounterii");
            return (Criteria) this;
        }

        public Criteria andEncounteriiGreaterThan(String value) {
            addCriterion("EncounterII >", value, "encounterii");
            return (Criteria) this;
        }

        public Criteria andEncounteriiGreaterThanOrEqualTo(String value) {
            addCriterion("EncounterII >=", value, "encounterii");
            return (Criteria) this;
        }

        public Criteria andEncounteriiLessThan(String value) {
            addCriterion("EncounterII <", value, "encounterii");
            return (Criteria) this;
        }

        public Criteria andEncounteriiLessThanOrEqualTo(String value) {
            addCriterion("EncounterII <=", value, "encounterii");
            return (Criteria) this;
        }

        public Criteria andEncounteriiLike(String value) {
            addCriterion("EncounterII like", value, "encounterii");
            return (Criteria) this;
        }

        public Criteria andEncounteriiNotLike(String value) {
            addCriterion("EncounterII not like", value, "encounterii");
            return (Criteria) this;
        }

        public Criteria andEncounteriiIn(List<String> values) {
            addCriterion("EncounterII in", values, "encounterii");
            return (Criteria) this;
        }

        public Criteria andEncounteriiNotIn(List<String> values) {
            addCriterion("EncounterII not in", values, "encounterii");
            return (Criteria) this;
        }

        public Criteria andEncounteriiBetween(String value1, String value2) {
            addCriterion("EncounterII between", value1, value2, "encounterii");
            return (Criteria) this;
        }

        public Criteria andEncounteriiNotBetween(String value1, String value2) {
            addCriterion("EncounterII not between", value1, value2, "encounterii");
            return (Criteria) this;
        }

        public Criteria andPtIdnumIsNull() {
            addCriterion("pt_idnum is null");
            return (Criteria) this;
        }

        public Criteria andPtIdnumIsNotNull() {
            addCriterion("pt_idnum is not null");
            return (Criteria) this;
        }

        public Criteria andPtIdnumEqualTo(String value) {
            addCriterion("pt_idnum =", value, "ptIdnum");
            return (Criteria) this;
        }

        public Criteria andPtIdnumNotEqualTo(String value) {
            addCriterion("pt_idnum <>", value, "ptIdnum");
            return (Criteria) this;
        }

        public Criteria andPtIdnumGreaterThan(String value) {
            addCriterion("pt_idnum >", value, "ptIdnum");
            return (Criteria) this;
        }

        public Criteria andPtIdnumGreaterThanOrEqualTo(String value) {
            addCriterion("pt_idnum >=", value, "ptIdnum");
            return (Criteria) this;
        }

        public Criteria andPtIdnumLessThan(String value) {
            addCriterion("pt_idnum <", value, "ptIdnum");
            return (Criteria) this;
        }

        public Criteria andPtIdnumLessThanOrEqualTo(String value) {
            addCriterion("pt_idnum <=", value, "ptIdnum");
            return (Criteria) this;
        }

        public Criteria andPtIdnumLike(String value) {
            addCriterion("pt_idnum like", value, "ptIdnum");
            return (Criteria) this;
        }

        public Criteria andPtIdnumNotLike(String value) {
            addCriterion("pt_idnum not like", value, "ptIdnum");
            return (Criteria) this;
        }

        public Criteria andPtIdnumIn(List<String> values) {
            addCriterion("pt_idnum in", values, "ptIdnum");
            return (Criteria) this;
        }

        public Criteria andPtIdnumNotIn(List<String> values) {
            addCriterion("pt_idnum not in", values, "ptIdnum");
            return (Criteria) this;
        }

        public Criteria andPtIdnumBetween(String value1, String value2) {
            addCriterion("pt_idnum between", value1, value2, "ptIdnum");
            return (Criteria) this;
        }

        public Criteria andPtIdnumNotBetween(String value1, String value2) {
            addCriterion("pt_idnum not between", value1, value2, "ptIdnum");
            return (Criteria) this;
        }

        public Criteria andPtLevelIsNull() {
            addCriterion("pt_Level is null");
            return (Criteria) this;
        }

        public Criteria andPtLevelIsNotNull() {
            addCriterion("pt_Level is not null");
            return (Criteria) this;
        }

        public Criteria andPtLevelEqualTo(String value) {
            addCriterion("pt_Level =", value, "ptLevel");
            return (Criteria) this;
        }

        public Criteria andPtLevelNotEqualTo(String value) {
            addCriterion("pt_Level <>", value, "ptLevel");
            return (Criteria) this;
        }

        public Criteria andPtLevelGreaterThan(String value) {
            addCriterion("pt_Level >", value, "ptLevel");
            return (Criteria) this;
        }

        public Criteria andPtLevelGreaterThanOrEqualTo(String value) {
            addCriterion("pt_Level >=", value, "ptLevel");
            return (Criteria) this;
        }

        public Criteria andPtLevelLessThan(String value) {
            addCriterion("pt_Level <", value, "ptLevel");
            return (Criteria) this;
        }

        public Criteria andPtLevelLessThanOrEqualTo(String value) {
            addCriterion("pt_Level <=", value, "ptLevel");
            return (Criteria) this;
        }

        public Criteria andPtLevelLike(String value) {
            addCriterion("pt_Level like", value, "ptLevel");
            return (Criteria) this;
        }

        public Criteria andPtLevelNotLike(String value) {
            addCriterion("pt_Level not like", value, "ptLevel");
            return (Criteria) this;
        }

        public Criteria andPtLevelIn(List<String> values) {
            addCriterion("pt_Level in", values, "ptLevel");
            return (Criteria) this;
        }

        public Criteria andPtLevelNotIn(List<String> values) {
            addCriterion("pt_Level not in", values, "ptLevel");
            return (Criteria) this;
        }

        public Criteria andPtLevelBetween(String value1, String value2) {
            addCriterion("pt_Level between", value1, value2, "ptLevel");
            return (Criteria) this;
        }

        public Criteria andPtLevelNotBetween(String value1, String value2) {
            addCriterion("pt_Level not between", value1, value2, "ptLevel");
            return (Criteria) this;
        }

        public Criteria andPtHosppatientidIsNull() {
            addCriterion("pt_hospPatientid is null");
            return (Criteria) this;
        }

        public Criteria andPtHosppatientidIsNotNull() {
            addCriterion("pt_hospPatientid is not null");
            return (Criteria) this;
        }

        public Criteria andPtHosppatientidEqualTo(String value) {
            addCriterion("pt_hospPatientid =", value, "ptHosppatientid");
            return (Criteria) this;
        }

        public Criteria andPtHosppatientidNotEqualTo(String value) {
            addCriterion("pt_hospPatientid <>", value, "ptHosppatientid");
            return (Criteria) this;
        }

        public Criteria andPtHosppatientidGreaterThan(String value) {
            addCriterion("pt_hospPatientid >", value, "ptHosppatientid");
            return (Criteria) this;
        }

        public Criteria andPtHosppatientidGreaterThanOrEqualTo(String value) {
            addCriterion("pt_hospPatientid >=", value, "ptHosppatientid");
            return (Criteria) this;
        }

        public Criteria andPtHosppatientidLessThan(String value) {
            addCriterion("pt_hospPatientid <", value, "ptHosppatientid");
            return (Criteria) this;
        }

        public Criteria andPtHosppatientidLessThanOrEqualTo(String value) {
            addCriterion("pt_hospPatientid <=", value, "ptHosppatientid");
            return (Criteria) this;
        }

        public Criteria andPtHosppatientidLike(String value) {
            addCriterion("pt_hospPatientid like", value, "ptHosppatientid");
            return (Criteria) this;
        }

        public Criteria andPtHosppatientidNotLike(String value) {
            addCriterion("pt_hospPatientid not like", value, "ptHosppatientid");
            return (Criteria) this;
        }

        public Criteria andPtHosppatientidIn(List<String> values) {
            addCriterion("pt_hospPatientid in", values, "ptHosppatientid");
            return (Criteria) this;
        }

        public Criteria andPtHosppatientidNotIn(List<String> values) {
            addCriterion("pt_hospPatientid not in", values, "ptHosppatientid");
            return (Criteria) this;
        }

        public Criteria andPtHosppatientidBetween(String value1, String value2) {
            addCriterion("pt_hospPatientid between", value1, value2, "ptHosppatientid");
            return (Criteria) this;
        }

        public Criteria andPtHosppatientidNotBetween(String value1, String value2) {
            addCriterion("pt_hospPatientid not between", value1, value2, "ptHosppatientid");
            return (Criteria) this;
        }

        public Criteria andPtOutpatientnoIsNull() {
            addCriterion("pt_outpatientno is null");
            return (Criteria) this;
        }

        public Criteria andPtOutpatientnoIsNotNull() {
            addCriterion("pt_outpatientno is not null");
            return (Criteria) this;
        }

        public Criteria andPtOutpatientnoEqualTo(String value) {
            addCriterion("pt_outpatientno =", value, "ptOutpatientno");
            return (Criteria) this;
        }

        public Criteria andPtOutpatientnoNotEqualTo(String value) {
            addCriterion("pt_outpatientno <>", value, "ptOutpatientno");
            return (Criteria) this;
        }

        public Criteria andPtOutpatientnoGreaterThan(String value) {
            addCriterion("pt_outpatientno >", value, "ptOutpatientno");
            return (Criteria) this;
        }

        public Criteria andPtOutpatientnoGreaterThanOrEqualTo(String value) {
            addCriterion("pt_outpatientno >=", value, "ptOutpatientno");
            return (Criteria) this;
        }

        public Criteria andPtOutpatientnoLessThan(String value) {
            addCriterion("pt_outpatientno <", value, "ptOutpatientno");
            return (Criteria) this;
        }

        public Criteria andPtOutpatientnoLessThanOrEqualTo(String value) {
            addCriterion("pt_outpatientno <=", value, "ptOutpatientno");
            return (Criteria) this;
        }

        public Criteria andPtOutpatientnoLike(String value) {
            addCriterion("pt_outpatientno like", value, "ptOutpatientno");
            return (Criteria) this;
        }

        public Criteria andPtOutpatientnoNotLike(String value) {
            addCriterion("pt_outpatientno not like", value, "ptOutpatientno");
            return (Criteria) this;
        }

        public Criteria andPtOutpatientnoIn(List<String> values) {
            addCriterion("pt_outpatientno in", values, "ptOutpatientno");
            return (Criteria) this;
        }

        public Criteria andPtOutpatientnoNotIn(List<String> values) {
            addCriterion("pt_outpatientno not in", values, "ptOutpatientno");
            return (Criteria) this;
        }

        public Criteria andPtOutpatientnoBetween(String value1, String value2) {
            addCriterion("pt_outpatientno between", value1, value2, "ptOutpatientno");
            return (Criteria) this;
        }

        public Criteria andPtOutpatientnoNotBetween(String value1, String value2) {
            addCriterion("pt_outpatientno not between", value1, value2, "ptOutpatientno");
            return (Criteria) this;
        }

        public Criteria andPtCardnoIsNull() {
            addCriterion("pt_cardno is null");
            return (Criteria) this;
        }

        public Criteria andPtCardnoIsNotNull() {
            addCriterion("pt_cardno is not null");
            return (Criteria) this;
        }

        public Criteria andPtCardnoEqualTo(String value) {
            addCriterion("pt_cardno =", value, "ptCardno");
            return (Criteria) this;
        }

        public Criteria andPtCardnoNotEqualTo(String value) {
            addCriterion("pt_cardno <>", value, "ptCardno");
            return (Criteria) this;
        }

        public Criteria andPtCardnoGreaterThan(String value) {
            addCriterion("pt_cardno >", value, "ptCardno");
            return (Criteria) this;
        }

        public Criteria andPtCardnoGreaterThanOrEqualTo(String value) {
            addCriterion("pt_cardno >=", value, "ptCardno");
            return (Criteria) this;
        }

        public Criteria andPtCardnoLessThan(String value) {
            addCriterion("pt_cardno <", value, "ptCardno");
            return (Criteria) this;
        }

        public Criteria andPtCardnoLessThanOrEqualTo(String value) {
            addCriterion("pt_cardno <=", value, "ptCardno");
            return (Criteria) this;
        }

        public Criteria andPtCardnoLike(String value) {
            addCriterion("pt_cardno like", value, "ptCardno");
            return (Criteria) this;
        }

        public Criteria andPtCardnoNotLike(String value) {
            addCriterion("pt_cardno not like", value, "ptCardno");
            return (Criteria) this;
        }

        public Criteria andPtCardnoIn(List<String> values) {
            addCriterion("pt_cardno in", values, "ptCardno");
            return (Criteria) this;
        }

        public Criteria andPtCardnoNotIn(List<String> values) {
            addCriterion("pt_cardno not in", values, "ptCardno");
            return (Criteria) this;
        }

        public Criteria andPtCardnoBetween(String value1, String value2) {
            addCriterion("pt_cardno between", value1, value2, "ptCardno");
            return (Criteria) this;
        }

        public Criteria andPtCardnoNotBetween(String value1, String value2) {
            addCriterion("pt_cardno not between", value1, value2, "ptCardno");
            return (Criteria) this;
        }

        public Criteria andPtNamepyIsNull() {
            addCriterion("pt_namepy is null");
            return (Criteria) this;
        }

        public Criteria andPtNamepyIsNotNull() {
            addCriterion("pt_namepy is not null");
            return (Criteria) this;
        }

        public Criteria andPtNamepyEqualTo(String value) {
            addCriterion("pt_namepy =", value, "ptNamepy");
            return (Criteria) this;
        }

        public Criteria andPtNamepyNotEqualTo(String value) {
            addCriterion("pt_namepy <>", value, "ptNamepy");
            return (Criteria) this;
        }

        public Criteria andPtNamepyGreaterThan(String value) {
            addCriterion("pt_namepy >", value, "ptNamepy");
            return (Criteria) this;
        }

        public Criteria andPtNamepyGreaterThanOrEqualTo(String value) {
            addCriterion("pt_namepy >=", value, "ptNamepy");
            return (Criteria) this;
        }

        public Criteria andPtNamepyLessThan(String value) {
            addCriterion("pt_namepy <", value, "ptNamepy");
            return (Criteria) this;
        }

        public Criteria andPtNamepyLessThanOrEqualTo(String value) {
            addCriterion("pt_namepy <=", value, "ptNamepy");
            return (Criteria) this;
        }

        public Criteria andPtNamepyLike(String value) {
            addCriterion("pt_namepy like", value, "ptNamepy");
            return (Criteria) this;
        }

        public Criteria andPtNamepyNotLike(String value) {
            addCriterion("pt_namepy not like", value, "ptNamepy");
            return (Criteria) this;
        }

        public Criteria andPtNamepyIn(List<String> values) {
            addCriterion("pt_namepy in", values, "ptNamepy");
            return (Criteria) this;
        }

        public Criteria andPtNamepyNotIn(List<String> values) {
            addCriterion("pt_namepy not in", values, "ptNamepy");
            return (Criteria) this;
        }

        public Criteria andPtNamepyBetween(String value1, String value2) {
            addCriterion("pt_namepy between", value1, value2, "ptNamepy");
            return (Criteria) this;
        }

        public Criteria andPtNamepyNotBetween(String value1, String value2) {
            addCriterion("pt_namepy not between", value1, value2, "ptNamepy");
            return (Criteria) this;
        }

        public Criteria andIntypeIsNull() {
            addCriterion("intype is null");
            return (Criteria) this;
        }

        public Criteria andIntypeIsNotNull() {
            addCriterion("intype is not null");
            return (Criteria) this;
        }

        public Criteria andIntypeEqualTo(String value) {
            addCriterion("intype =", value, "intype");
            return (Criteria) this;
        }

        public Criteria andIntypeNotEqualTo(String value) {
            addCriterion("intype <>", value, "intype");
            return (Criteria) this;
        }

        public Criteria andIntypeGreaterThan(String value) {
            addCriterion("intype >", value, "intype");
            return (Criteria) this;
        }

        public Criteria andIntypeGreaterThanOrEqualTo(String value) {
            addCriterion("intype >=", value, "intype");
            return (Criteria) this;
        }

        public Criteria andIntypeLessThan(String value) {
            addCriterion("intype <", value, "intype");
            return (Criteria) this;
        }

        public Criteria andIntypeLessThanOrEqualTo(String value) {
            addCriterion("intype <=", value, "intype");
            return (Criteria) this;
        }

        public Criteria andIntypeLike(String value) {
            addCriterion("intype like", value, "intype");
            return (Criteria) this;
        }

        public Criteria andIntypeNotLike(String value) {
            addCriterion("intype not like", value, "intype");
            return (Criteria) this;
        }

        public Criteria andIntypeIn(List<String> values) {
            addCriterion("intype in", values, "intype");
            return (Criteria) this;
        }

        public Criteria andIntypeNotIn(List<String> values) {
            addCriterion("intype not in", values, "intype");
            return (Criteria) this;
        }

        public Criteria andIntypeBetween(String value1, String value2) {
            addCriterion("intype between", value1, value2, "intype");
            return (Criteria) this;
        }

        public Criteria andIntypeNotBetween(String value1, String value2) {
            addCriterion("intype not between", value1, value2, "intype");
            return (Criteria) this;
        }

        public Criteria andInpatientidIsNull() {
            addCriterion("inpatientid is null");
            return (Criteria) this;
        }

        public Criteria andInpatientidIsNotNull() {
            addCriterion("inpatientid is not null");
            return (Criteria) this;
        }

        public Criteria andInpatientidEqualTo(Integer value) {
            addCriterion("inpatientid =", value, "inpatientid");
            return (Criteria) this;
        }

        public Criteria andInpatientidNotEqualTo(Integer value) {
            addCriterion("inpatientid <>", value, "inpatientid");
            return (Criteria) this;
        }

        public Criteria andInpatientidGreaterThan(Integer value) {
            addCriterion("inpatientid >", value, "inpatientid");
            return (Criteria) this;
        }

        public Criteria andInpatientidGreaterThanOrEqualTo(Integer value) {
            addCriterion("inpatientid >=", value, "inpatientid");
            return (Criteria) this;
        }

        public Criteria andInpatientidLessThan(Integer value) {
            addCriterion("inpatientid <", value, "inpatientid");
            return (Criteria) this;
        }

        public Criteria andInpatientidLessThanOrEqualTo(Integer value) {
            addCriterion("inpatientid <=", value, "inpatientid");
            return (Criteria) this;
        }

        public Criteria andInpatientidIn(List<Integer> values) {
            addCriterion("inpatientid in", values, "inpatientid");
            return (Criteria) this;
        }

        public Criteria andInpatientidNotIn(List<Integer> values) {
            addCriterion("inpatientid not in", values, "inpatientid");
            return (Criteria) this;
        }

        public Criteria andInpatientidBetween(Integer value1, Integer value2) {
            addCriterion("inpatientid between", value1, value2, "inpatientid");
            return (Criteria) this;
        }

        public Criteria andInpatientidNotBetween(Integer value1, Integer value2) {
            addCriterion("inpatientid not between", value1, value2, "inpatientid");
            return (Criteria) this;
        }

        public Criteria andPtNameenIsNull() {
            addCriterion("pt_nameen is null");
            return (Criteria) this;
        }

        public Criteria andPtNameenIsNotNull() {
            addCriterion("pt_nameen is not null");
            return (Criteria) this;
        }

        public Criteria andPtNameenEqualTo(String value) {
            addCriterion("pt_nameen =", value, "ptNameen");
            return (Criteria) this;
        }

        public Criteria andPtNameenNotEqualTo(String value) {
            addCriterion("pt_nameen <>", value, "ptNameen");
            return (Criteria) this;
        }

        public Criteria andPtNameenGreaterThan(String value) {
            addCriterion("pt_nameen >", value, "ptNameen");
            return (Criteria) this;
        }

        public Criteria andPtNameenGreaterThanOrEqualTo(String value) {
            addCriterion("pt_nameen >=", value, "ptNameen");
            return (Criteria) this;
        }

        public Criteria andPtNameenLessThan(String value) {
            addCriterion("pt_nameen <", value, "ptNameen");
            return (Criteria) this;
        }

        public Criteria andPtNameenLessThanOrEqualTo(String value) {
            addCriterion("pt_nameen <=", value, "ptNameen");
            return (Criteria) this;
        }

        public Criteria andPtNameenLike(String value) {
            addCriterion("pt_nameen like", value, "ptNameen");
            return (Criteria) this;
        }

        public Criteria andPtNameenNotLike(String value) {
            addCriterion("pt_nameen not like", value, "ptNameen");
            return (Criteria) this;
        }

        public Criteria andPtNameenIn(List<String> values) {
            addCriterion("pt_nameen in", values, "ptNameen");
            return (Criteria) this;
        }

        public Criteria andPtNameenNotIn(List<String> values) {
            addCriterion("pt_nameen not in", values, "ptNameen");
            return (Criteria) this;
        }

        public Criteria andPtNameenBetween(String value1, String value2) {
            addCriterion("pt_nameen between", value1, value2, "ptNameen");
            return (Criteria) this;
        }

        public Criteria andPtNameenNotBetween(String value1, String value2) {
            addCriterion("pt_nameen not between", value1, value2, "ptNameen");
            return (Criteria) this;
        }

        public Criteria andOtherIdIsNull() {
            addCriterion("other_id is null");
            return (Criteria) this;
        }

        public Criteria andOtherIdIsNotNull() {
            addCriterion("other_id is not null");
            return (Criteria) this;
        }

        public Criteria andOtherIdEqualTo(Integer value) {
            addCriterion("other_id =", value, "otherId");
            return (Criteria) this;
        }

        public Criteria andOtherIdNotEqualTo(Integer value) {
            addCriterion("other_id <>", value, "otherId");
            return (Criteria) this;
        }

        public Criteria andOtherIdGreaterThan(Integer value) {
            addCriterion("other_id >", value, "otherId");
            return (Criteria) this;
        }

        public Criteria andOtherIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("other_id >=", value, "otherId");
            return (Criteria) this;
        }

        public Criteria andOtherIdLessThan(Integer value) {
            addCriterion("other_id <", value, "otherId");
            return (Criteria) this;
        }

        public Criteria andOtherIdLessThanOrEqualTo(Integer value) {
            addCriterion("other_id <=", value, "otherId");
            return (Criteria) this;
        }

        public Criteria andOtherIdIn(List<Integer> values) {
            addCriterion("other_id in", values, "otherId");
            return (Criteria) this;
        }

        public Criteria andOtherIdNotIn(List<Integer> values) {
            addCriterion("other_id not in", values, "otherId");
            return (Criteria) this;
        }

        public Criteria andOtherIdBetween(Integer value1, Integer value2) {
            addCriterion("other_id between", value1, value2, "otherId");
            return (Criteria) this;
        }

        public Criteria andOtherIdNotBetween(Integer value1, Integer value2) {
            addCriterion("other_id not between", value1, value2, "otherId");
            return (Criteria) this;
        }

        public Criteria andFskhIsNull() {
            addCriterion("FSKH is null");
            return (Criteria) this;
        }

        public Criteria andFskhIsNotNull() {
            addCriterion("FSKH is not null");
            return (Criteria) this;
        }

        public Criteria andFskhEqualTo(String value) {
            addCriterion("FSKH =", value, "fskh");
            return (Criteria) this;
        }

        public Criteria andFskhNotEqualTo(String value) {
            addCriterion("FSKH <>", value, "fskh");
            return (Criteria) this;
        }

        public Criteria andFskhGreaterThan(String value) {
            addCriterion("FSKH >", value, "fskh");
            return (Criteria) this;
        }

        public Criteria andFskhGreaterThanOrEqualTo(String value) {
            addCriterion("FSKH >=", value, "fskh");
            return (Criteria) this;
        }

        public Criteria andFskhLessThan(String value) {
            addCriterion("FSKH <", value, "fskh");
            return (Criteria) this;
        }

        public Criteria andFskhLessThanOrEqualTo(String value) {
            addCriterion("FSKH <=", value, "fskh");
            return (Criteria) this;
        }

        public Criteria andFskhLike(String value) {
            addCriterion("FSKH like", value, "fskh");
            return (Criteria) this;
        }

        public Criteria andFskhNotLike(String value) {
            addCriterion("FSKH not like", value, "fskh");
            return (Criteria) this;
        }

        public Criteria andFskhIn(List<String> values) {
            addCriterion("FSKH in", values, "fskh");
            return (Criteria) this;
        }

        public Criteria andFskhNotIn(List<String> values) {
            addCriterion("FSKH not in", values, "fskh");
            return (Criteria) this;
        }

        public Criteria andFskhBetween(String value1, String value2) {
            addCriterion("FSKH between", value1, value2, "fskh");
            return (Criteria) this;
        }

        public Criteria andFskhNotBetween(String value1, String value2) {
            addCriterion("FSKH not between", value1, value2, "fskh");
            return (Criteria) this;
        }

        public Criteria andAccessionNumberIsNull() {
            addCriterion("accession_number is null");
            return (Criteria) this;
        }

        public Criteria andAccessionNumberIsNotNull() {
            addCriterion("accession_number is not null");
            return (Criteria) this;
        }

        public Criteria andAccessionNumberEqualTo(String value) {
            addCriterion("accession_number =", value, "accessionNumber");
            return (Criteria) this;
        }

        public Criteria andAccessionNumberNotEqualTo(String value) {
            addCriterion("accession_number <>", value, "accessionNumber");
            return (Criteria) this;
        }

        public Criteria andAccessionNumberGreaterThan(String value) {
            addCriterion("accession_number >", value, "accessionNumber");
            return (Criteria) this;
        }

        public Criteria andAccessionNumberGreaterThanOrEqualTo(String value) {
            addCriterion("accession_number >=", value, "accessionNumber");
            return (Criteria) this;
        }

        public Criteria andAccessionNumberLessThan(String value) {
            addCriterion("accession_number <", value, "accessionNumber");
            return (Criteria) this;
        }

        public Criteria andAccessionNumberLessThanOrEqualTo(String value) {
            addCriterion("accession_number <=", value, "accessionNumber");
            return (Criteria) this;
        }

        public Criteria andAccessionNumberLike(String value) {
            addCriterion("accession_number like", value, "accessionNumber");
            return (Criteria) this;
        }

        public Criteria andAccessionNumberNotLike(String value) {
            addCriterion("accession_number not like", value, "accessionNumber");
            return (Criteria) this;
        }

        public Criteria andAccessionNumberIn(List<String> values) {
            addCriterion("accession_number in", values, "accessionNumber");
            return (Criteria) this;
        }

        public Criteria andAccessionNumberNotIn(List<String> values) {
            addCriterion("accession_number not in", values, "accessionNumber");
            return (Criteria) this;
        }

        public Criteria andAccessionNumberBetween(String value1, String value2) {
            addCriterion("accession_number between", value1, value2, "accessionNumber");
            return (Criteria) this;
        }

        public Criteria andAccessionNumberNotBetween(String value1, String value2) {
            addCriterion("accession_number not between", value1, value2, "accessionNumber");
            return (Criteria) this;
        }

        public Criteria andPtUidIsNull() {
            addCriterion("pt_uid is null");
            return (Criteria) this;
        }

        public Criteria andPtUidIsNotNull() {
            addCriterion("pt_uid is not null");
            return (Criteria) this;
        }

        public Criteria andPtUidEqualTo(String value) {
            addCriterion("pt_uid =", value, "ptUid");
            return (Criteria) this;
        }

        public Criteria andPtUidNotEqualTo(String value) {
            addCriterion("pt_uid <>", value, "ptUid");
            return (Criteria) this;
        }

        public Criteria andPtUidGreaterThan(String value) {
            addCriterion("pt_uid >", value, "ptUid");
            return (Criteria) this;
        }

        public Criteria andPtUidGreaterThanOrEqualTo(String value) {
            addCriterion("pt_uid >=", value, "ptUid");
            return (Criteria) this;
        }

        public Criteria andPtUidLessThan(String value) {
            addCriterion("pt_uid <", value, "ptUid");
            return (Criteria) this;
        }

        public Criteria andPtUidLessThanOrEqualTo(String value) {
            addCriterion("pt_uid <=", value, "ptUid");
            return (Criteria) this;
        }

        public Criteria andPtUidLike(String value) {
            addCriterion("pt_uid like", value, "ptUid");
            return (Criteria) this;
        }

        public Criteria andPtUidNotLike(String value) {
            addCriterion("pt_uid not like", value, "ptUid");
            return (Criteria) this;
        }

        public Criteria andPtUidIn(List<String> values) {
            addCriterion("pt_uid in", values, "ptUid");
            return (Criteria) this;
        }

        public Criteria andPtUidNotIn(List<String> values) {
            addCriterion("pt_uid not in", values, "ptUid");
            return (Criteria) this;
        }

        public Criteria andPtUidBetween(String value1, String value2) {
            addCriterion("pt_uid between", value1, value2, "ptUid");
            return (Criteria) this;
        }

        public Criteria andPtUidNotBetween(String value1, String value2) {
            addCriterion("pt_uid not between", value1, value2, "ptUid");
            return (Criteria) this;
        }

        public Criteria andPtMidIsNull() {
            addCriterion("pt_mid is null");
            return (Criteria) this;
        }

        public Criteria andPtMidIsNotNull() {
            addCriterion("pt_mid is not null");
            return (Criteria) this;
        }

        public Criteria andPtMidEqualTo(String value) {
            addCriterion("pt_mid =", value, "ptMid");
            return (Criteria) this;
        }

        public Criteria andPtMidNotEqualTo(String value) {
            addCriterion("pt_mid <>", value, "ptMid");
            return (Criteria) this;
        }

        public Criteria andPtMidGreaterThan(String value) {
            addCriterion("pt_mid >", value, "ptMid");
            return (Criteria) this;
        }

        public Criteria andPtMidGreaterThanOrEqualTo(String value) {
            addCriterion("pt_mid >=", value, "ptMid");
            return (Criteria) this;
        }

        public Criteria andPtMidLessThan(String value) {
            addCriterion("pt_mid <", value, "ptMid");
            return (Criteria) this;
        }

        public Criteria andPtMidLessThanOrEqualTo(String value) {
            addCriterion("pt_mid <=", value, "ptMid");
            return (Criteria) this;
        }

        public Criteria andPtMidLike(String value) {
            addCriterion("pt_mid like", value, "ptMid");
            return (Criteria) this;
        }

        public Criteria andPtMidNotLike(String value) {
            addCriterion("pt_mid not like", value, "ptMid");
            return (Criteria) this;
        }

        public Criteria andPtMidIn(List<String> values) {
            addCriterion("pt_mid in", values, "ptMid");
            return (Criteria) this;
        }

        public Criteria andPtMidNotIn(List<String> values) {
            addCriterion("pt_mid not in", values, "ptMid");
            return (Criteria) this;
        }

        public Criteria andPtMidBetween(String value1, String value2) {
            addCriterion("pt_mid between", value1, value2, "ptMid");
            return (Criteria) this;
        }

        public Criteria andPtMidNotBetween(String value1, String value2) {
            addCriterion("pt_mid not between", value1, value2, "ptMid");
            return (Criteria) this;
        }

        public Criteria andPtCasenoIsNull() {
            addCriterion("pt_caseno is null");
            return (Criteria) this;
        }

        public Criteria andPtCasenoIsNotNull() {
            addCriterion("pt_caseno is not null");
            return (Criteria) this;
        }

        public Criteria andPtCasenoEqualTo(String value) {
            addCriterion("pt_caseno =", value, "ptCaseno");
            return (Criteria) this;
        }

        public Criteria andPtCasenoNotEqualTo(String value) {
            addCriterion("pt_caseno <>", value, "ptCaseno");
            return (Criteria) this;
        }

        public Criteria andPtCasenoGreaterThan(String value) {
            addCriterion("pt_caseno >", value, "ptCaseno");
            return (Criteria) this;
        }

        public Criteria andPtCasenoGreaterThanOrEqualTo(String value) {
            addCriterion("pt_caseno >=", value, "ptCaseno");
            return (Criteria) this;
        }

        public Criteria andPtCasenoLessThan(String value) {
            addCriterion("pt_caseno <", value, "ptCaseno");
            return (Criteria) this;
        }

        public Criteria andPtCasenoLessThanOrEqualTo(String value) {
            addCriterion("pt_caseno <=", value, "ptCaseno");
            return (Criteria) this;
        }

        public Criteria andPtCasenoLike(String value) {
            addCriterion("pt_caseno like", value, "ptCaseno");
            return (Criteria) this;
        }

        public Criteria andPtCasenoNotLike(String value) {
            addCriterion("pt_caseno not like", value, "ptCaseno");
            return (Criteria) this;
        }

        public Criteria andPtCasenoIn(List<String> values) {
            addCriterion("pt_caseno in", values, "ptCaseno");
            return (Criteria) this;
        }

        public Criteria andPtCasenoNotIn(List<String> values) {
            addCriterion("pt_caseno not in", values, "ptCaseno");
            return (Criteria) this;
        }

        public Criteria andPtCasenoBetween(String value1, String value2) {
            addCriterion("pt_caseno between", value1, value2, "ptCaseno");
            return (Criteria) this;
        }

        public Criteria andPtCasenoNotBetween(String value1, String value2) {
            addCriterion("pt_caseno not between", value1, value2, "ptCaseno");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}